package bank;

import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.jws.WebService;

import bank.msgs.BankTransfer;


@WebService(endpointInterface="bank.RemoteBankService")
@Stateless
public class BankWebService implements RemoteBankService{
	@EJB LocalBankService service;

	@Override
	public void validateTransferRequest(BankTransfer bankTransfer)
			throws Exception {
		service.validateTransferRequest(bankTransfer);
	}

	@Override
	public Long requestTransfer(BankTransfer bankTransfer) throws Exception {
		return service.requestTransfer(bankTransfer);
	}

	@Override
	public void validateTransfer(BankTransfer bankTransfer) throws Exception {
		service.validateTransferRequest(bankTransfer);
	}

}

